package com.fiberhome.ztelauncher.xml.bean;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.List;

/**
 * Created by Deed on 2018/3/19.
 */

public class Launcher {
    @XStreamAlias("Pctkey")
    public int pctkey;
    @XStreamAlias("Config")
    public Config config;
    @XStreamAlias("Layout")
    public FileBean layout;
    @XStreamAlias("CommonData")
    public FileBean commonData;

    @XStreamAlias("Pages")
    public Pages pages;

    @XStreamAlias("Resource")
    public FileBean resource;

    @XStreamAlias("ResourceDeta")
    public FileBean resourceDeta;

    @XStreamAlias("StartPoster")
    public FileBean startPoster;

    @XStreamAlias("ScreenSaver")
    public FileBean screenSaver;

    @XStreamAlias("BackGround")
    public FileBean background;

    @XStreamAlias("RollTime")
    public ValueBean rollTime;


    public static class Config {
        @XStreamAsAttribute
        public String startTime;
        @XStreamAsAttribute
        public String endTime;
    }

    public static class Pages {
        @XStreamImplicit(itemFieldName = "Page")
        public List<FileBean> pages;
    }
}
